import request from './request'
// 获取设定的目标
export function getSaleTask (data:any) {
    return request.get('/api/v1/crm/sales/task/getSaleTask', data)
}
// 获取业绩总额
export function getSaleData (data:any) {
    return request.get('/api/v1/crm/sign-contract-record/info', data)
}
// 获取目标选项
export function getTaskType (data:any) {
    return request.get('/api/v1/crm/sales/task/getTaskType', data)
}
// 获取数据看板
export function getDataBoard (data:any) {
    return request.get('/api/v1/crm/sales/task/getDataBoard', data)
}
// 近三十日长期保投保趋势
export function nearThirtyDaysData (data:any) {
    return request.get('/api/v1/crm/sign-contract-record/headCount-near-thirty-days', data)
}
// 新增目标
export function addSalesTask (data:any) {
    return request.post('/api/v1/crm/sales/task/addSalesTask', data)
}
